// 用于配置服务端与数据库的连接
const mongoose = require("mongoose");
const dbURI = "mongodb://localhost/hungry"; // hungry是当前连接的数据库名称
mongoose.connect(dbURI, { useNewUrlParser: true, useUnifiedTopology: true });
mongoose.connection.on("connected", function() {
	console.log("mongoose 成功连接 mongodb 数据库：" + dbURI);
});
require("./models/categoryModel");
require("./models/goodsModel");
require("./models/orderformModel");
require("./models/usersModel");
require("./models/adminsModel");
require("./models/carouselModel");
require("./models/chartsModel");
require("./models/totalChartsModel");
